package com.emep.changzhi.analyse.repository.datamonitor.minute;

import com.emep.changzhi.analyse.entity.datamonitor.minute.DataMinuteRoadDust;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.cassandra.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * @author yangj
 * @version V1.0
 * @Description: 道路扬尘监测_分钟数据表持久层
 * @date 2018/2/27  14:36
 */
public interface DataMinuteRoadDustRepository extends CrudRepository<DataMinuteRoadDust , Long> {

    @Query("select * from data_minute_road_dust limit :pageSize")
    List<DataMinuteRoadDust> dataMinuteRoadDustHome(@Param("pageSize") Integer pageSize);
    @Query("select * from data_minute_road_dust where token(id)>token(:id) limit :pageSize")
    List<DataMinuteRoadDust> dataMinuteRoadDustFlip(@Param("id")String id,@Param("pageSize") Integer pageSize);
}
